import React from 'react';

interface IconProps {
  key?: string;
  name: string;
  className?: string;
}

const Icon: React.FC<IconProps> = props => {
  return (
    <svg className={`icon ${props.className}`} aria-hidden="true">
      <use xlinkHref={`#${props.name}`}></use>
    </svg>
  );
};

export default Icon;
